package com.zxx.pattern.strategyPattern.strategy;

/**
 * @author zxx on 2021/1/7
 */
public class Test {

    public static void main(String[] args) {
        Duck redDuck = new DuckRedHead();
        redDuck.performFly();
        redDuck.performQuack();

        System.out.println();

        Duck rubberDuck = new DuckRubber();
        rubberDuck.performFly();
        rubberDuck.performQuack();

    }

}
